/*
 * InputHandler.hpp
 *
 *  Created on: 05.10.2013
 *      Author: dima
 */

#ifndef INPUTHANDLER_HPP_
#define INPUTHANDLER_HPP_

#include <SDL/SDL.h>

#include "../Model/PlayerModel.hpp"


namespace Tanks
{

namespace Controller
{

  class InputHandler
  {
  public:
    InputHandler(Tanks::Model::PlayerModel * argPlayer);

    bool handleInput();

  private:

    Tanks::Model::PlayerModel * m_player;

    //  first 4 bits ignored
    //  last  4 bits:
    //  left:  1000
    //  up:    0100
    //  right: 0010
    //  down:  0001
    char m_pressedButtons;
  };

}

}


#endif /* INPUTHANDLER_HPP_ */
